//
//  UIColor+Random.m
//  i0S007通用项目
//
//  Created by Apple on 16/2/17.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import "UIColor+Random.h"

@implementation UIColor (Random)

/**
 *  类方法,返回一个随机颜色
 *
 *  @return 返回一个随机颜色
 */
+ (UIColor *)randomColor {
    CGFloat r = arc4random_uniform(256) / 255.0;
    CGFloat g = arc4random_uniform(256) / 255.0;
    CGFloat b = arc4random_uniform(256) / 255.0;
    return [UIColor colorWithRed:r green:g blue:b alpha:1];
}
@end
